package com.ruoyi.carService.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.carService.mapper.CarAccountMapper;
import com.ruoyi.system.api.domain.CarAccount;
import com.ruoyi.carService.service.ICarAccountService;

/**
 * 车服账户Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-06
 */
@Service
public class CarAccountServiceImpl implements ICarAccountService 
{
    @Autowired
    private CarAccountMapper carAccountMapper;

    /**
     * 查询车服账户
     * 
     * @param accId 车服账户主键
     * @return 车服账户
     */
    @Override
    public CarAccount selectCarAccountByAccId(Long accId)
    {
        return carAccountMapper.selectCarAccountByAccId(accId);
    }

    /**
     * 查询车服账户列表
     * 
     * @param carAccount 车服账户
     * @return 车服账户
     */
    @Override
    public List<CarAccount> selectCarAccountList(CarAccount carAccount)
    {
        return carAccountMapper.selectCarAccountList(carAccount);
    }

    /**
     * 新增车服账户
     * 
     * @param carAccount 车服账户
     * @return 结果
     */
    @Override
    public int insertCarAccount(CarAccount carAccount)
    {
        return carAccountMapper.insertCarAccount(carAccount);
    }

    /**
     * 修改车服账户
     * 
     * @param carAccount 车服账户
     * @return 结果
     */
    @Override
    public int updateCarAccount(CarAccount carAccount)
    {
        return carAccountMapper.updateCarAccount(carAccount);
    }

    /**
     * 批量删除车服账户
     * 
     * @param accIds 需要删除的车服账户主键
     * @return 结果
     */
    @Override
    public int deleteCarAccountByAccIds(Long[] accIds)
    {
        return carAccountMapper.deleteCarAccountByAccIds(accIds);
    }

    /**
     * 删除车服账户信息
     * 
     * @param accId 车服账户主键
     * @return 结果
     */
    @Override
    public int deleteCarAccountByAccId(Long accId)
    {
        return carAccountMapper.deleteCarAccountByAccId(accId);
    }
}
